trunks: Add ptr() method to ScopedKeyHandle This method allows us to directly access the handle in the ScopedKeyHandle object, so that we can use it in methods like LoadKey Sample code looks like this: ScopedKeyHandle key(factory); LoadKey(key_blob, key.ptr(), ...); Encrypt(key.value()); This makes code for trunks clients a little simpler, since the ScopedKeyHandle can be declared before the Load operation as opposed the old operation which declared a TPM_HANDLE* and then wrapped it in a ScopedKeyHandle. BUG=None TEST=features=TEST emerge-rambi trunks Change-Id: I0849852aa26cea08ead1e1d7ab4dc6d500c8ccba
2 files changed